from flask import Blueprint, send_from_directory, current_app
import os

# 页面蓝图
teacher_page_bp = Blueprint('teacher_page', __name__)
@teacher_page_bp.route('/')
def teacher_index():
    static_dir = os.path.join(current_app.root_path, '..', 'static')
    return send_from_directory(static_dir, 'teacher_main.html')

# API蓝图
teacher_api_bp = Blueprint('teacher_api', __name__)

from . import routes 